package edu.bistu.alumnus.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "alumnus_table_frontUser")
public class FrontUser extends BaseObject {

	/**
	 * 前台用户必须采用email注册,作为用户名
	 */
	@Column(name = "zero_f_s_userEmail", unique = true, nullable = false, length = 50)
	private String userEmail;

	/**
	 * 密码，需采用MD5加密
	 */
	@Column(name = "zero_f_s_password", unique = false, nullable = false, length = 20)
	private String password;

	/**
	 * 真实姓名
	 */
	@Column(name = "zero_f_s_userRealName", unique = false, nullable = false, length = 20)
	private String userRealName;

	/**
	 * 昵称
	 */
	@Column(name = "zero_f_s_userAlias", unique = false, nullable = false, length = 25)
	private String userAlias;

	/**
	 * 学号
	 */
	@Column(name = "zero_f_s_studentId", unique = false, nullable = false)
	private boolean studentId;

	/**
	 * 性别
	 */
	@Column(name = "zero_f_s_userSex", unique = false, nullable = false)
	private boolean userSex;

	/**
	 * 手机号
	 */
	@Column(name = "zero_f_s_userPhoneNumber", unique = false, nullable = false, length = 15)
	private String userPhoneNumber;

	/**
	 * 身份证号码
	 */
	@Column(name = "zero_f_s_userIdNumber", unique = false, nullable = false, length = 25)
	private String userIdNumber;

	/**
	 * 工作单位
	 */
	@Column(name = "zero_f_s_userWorkUnit", unique = false, nullable = false, length = 35)
	private String userWorkUnit;

	public String getUserEmail() {
		return userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserRealName() {
		return userRealName;
	}

	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}

	public String getUserAlias() {
		return userAlias;
	}

	public void setUserAlias(String userAlias) {
		this.userAlias = userAlias;
	}

	public boolean isStudentId() {
		return studentId;
	}

	public void setStudentId(boolean studentId) {
		this.studentId = studentId;
	}

	public boolean isUserSex() {
		return userSex;
	}

	public void setUserSex(boolean userSex) {
		this.userSex = userSex;
	}

	public String getUserPhoneNumber() {
		return userPhoneNumber;
	}

	public void setUserPhoneNumber(String userPhoneNumber) {
		this.userPhoneNumber = userPhoneNumber;
	}

	public String getUserIdNumber() {
		return userIdNumber;
	}

	public void setUserIdNumber(String userIdNumber) {
		this.userIdNumber = userIdNumber;
	}

	public String getUserWorkUnit() {
		return userWorkUnit;
	}

	public void setUserWorkUnit(String userWorkUnit) {
		this.userWorkUnit = userWorkUnit;
	}

}
